package com.demo.demo.json;


import java.io.IOException;
import java.io.InputStream;
import java.nio.charset.StandardCharsets;
import org.apache.commons.io.IOUtils;

public class SchemaReader {
    public String readSchemaFile(String fileName) throws IOException {
        InputStream inputStream = getClass().getResourceAsStream("/" + fileName);
        return IOUtils.toString(inputStream, StandardCharsets.UTF_8.name());
    }
}

